package com.business.user.entity;

import java.util.Date;


/**
 * 用户表 实体类
 * @author chenjiehong
 * @date 2019-11-29 14:28:27
 * @since 1.0
 */
public class UserDto {

    // columns START
    private Integer id;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 密码
     */
    private String password;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 用户来源平台 wechat：微信,qq
     */
    private String openSource;

    /**
     * 微信或者其他平台用户id
     */
    private String openId;

    /**
     * 微信对用户数据进行 加密签名 的密钥
     */
    private String sessionKey;

    /**
     * 状态 0：删除 1：正常  2：冻结
     */
    private Integer state;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 最后登录时间
     */
    private Date lastLoginTime;

    /**
     * 0:默认 手机注册 1：其他平台注册
     */
    private Integer registerType;
    // columns END

    private  String token;

    
    public Integer getId() {
        return id;
    }

    
    public void setId(Integer id) {
        this.id = id;
    }

    
    public String getPhone() {
        return phone;
    }

    
    public void setPhone(String phone) {
        this.phone = phone;
    }

    
    public String getPassword() {
        return password;
    }

    
    public void setPassword(String password) {
        this.password = password;
    }

    
    public String getEmail() {
        return email;
    }

    
    public void setEmail(String email) {
        this.email = email;
    }

    
    public String getOpenSource() {
        return openSource;
    }

    
    public void setOpenSource(String openSource) {
        this.openSource = openSource;
    }

    
    public String getOpenId() {
        return openId;
    }

    
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    
    public String getSessionKey() {
        return sessionKey;
    }

    
    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    
    public Integer getState() {
        return state;
    }

    
    public void setState(Integer state) {
        this.state = state;
    }

    
    public Date getUpdateTime() {
        return updateTime;
    }

    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    
    public Date getCreateTime() {
        return createTime;
    }

    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    
    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    
    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    
    public Integer getRegisterType() {
        return registerType;
    }

    
    public void setRegisterType(Integer registerType) {
        this.registerType = registerType;
    }

    
    public String getToken() {
        return token;
    }

    
    public void setToken(String token) {
        this.token = token;
    }

    
    public String toString() {
        String log = "";
        log += "[id:" + getId() + "]";
        log += "[phone:" + getPhone() + "]";
        log += "[email:" + getEmail() + "]";
        log += "[state:" + getState() + "]";
        log += "[updateTime:" + getUpdateTime() + "]";
        log += "[createTime:" + getCreateTime() + "]";
        log += "[lastLoginTime:" + getLastLoginTime() + "]";
        log += "[registerType:" + getRegisterType() + "]";
        return log;
    }
}